package com.example.mapper.emp;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.emp.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {
    
    /**
     * 根据用户ID获取角色列表
     */
    List<String> selectRoleCodesByUserId(@Param("userId") Long userId);
    
    /**
     * 根据用户ID获取权限列表
     */
    List<String> selectPermissionsByUserId(@Param("userId") Long userId);
} 